//
//  JYJTAMacro.h
//  JYJTextApplication
//
//  Created by 冀永金 on 16/8/26.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#ifndef JYJTAMacro_h
#define JYJTAMacro_h
// 调试打印
#ifdef DEBUG
#define NSLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define NSLog(...)
#endif

#define IS_IPHONE           (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define IS_IPHONE_4         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 480.0f)
#define IS_IPHONE_5         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 568.0f)
#define IS_IPHONE_5         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 568.0f)
#define IS_IPHONE_5_OR_HIGHER         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height >= 568.0f)
#define IS_IPHONE_6         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 667.0f)
#define IS_IPHONE_6_PLUS         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 736.0f)

#define SCREEN_RECT         [UIScreen mainScreen].bounds
#define SCREEN_SIZE         [UIScreen mainScreen].bounds.size
#define SCREEN_WIDTH        SCREEN_SIZE.width
#define SCREEN_HEIGHT       SCREEN_SIZE.height
#define COMMA_STR @"%22%2C%22" //逗号
#define COLON_STR @"%22%3A%22" // 冒号
#define BRACKETS_STR @"%22%7D"  //括号
#define HEADDIC @{@"Content-Type":@"application/x-www-form-urlencoded",@"User-Agent:":@"Paros/3.2.13"}
#define PLACEHOLDERIMAGE [UIImage imageNamed:@"zhanwei"]


#endif /* JYJTAMacro_h */
